package com.zrx.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评论表(Comment)表实体类
 *
 * @author makejava
 * @since 2022-09-19 14:18:15
 */

@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_comment")
@ApiModel(value = "评论表实体类", description = "评论表")
public class Comment  {
    @TableId
    private Long id;

   
    @ApiModelProperty(value = " 评论类型（0代表文章评论，1代表友链评论）")
    private String type;
   
    @ApiModelProperty(value = " 文章id")
    private Long articleId;
   
    @ApiModelProperty(value = " 根评论id")
    private Long rootId;
   
    @ApiModelProperty(value = " 评论内容")
    private String content;
   
    @ApiModelProperty(value = " 所回复的目标评论的userid")
    private Long toCommentUserId;
   
    @ApiModelProperty(value = " 回复目标评论id")
    private Long toCommentId;
   
    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
   
    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
   
    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
   
    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
   
    @ApiModelProperty(value = " 删除标志（0代表未删除，1代表已删除）")
    private Integer delFlag;


}

